package org.jeecg.modules.flower.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.flower.entity.FlowerOutorder;
import org.jeecg.modules.flower.entity.FlowerOutorderinfo;
import org.jeecg.modules.flower.entity.FlowerTagInfo;

import java.io.IOException;
import java.util.List;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
public interface IFlowerOutorderNewService extends IService<FlowerOutorder> {

 /**
	 *
	 * 销售系统生成出库单
	 * @descriptionauthor
	 * @author gf
	 * 2023-3-1 15:01
	 * [flowerOutorder, flowerOutorderinfoList]
	 * @return java.lang.String
	 */
	public String saveMainNew(FlowerOutorder flowerOutorder,List<FlowerOutorderinfo> flowerOutorderinfoList) throws IOException;


	public String toHouseSure(String sealNo);

	/**
	 * 删除一对多
	 */
	public void delMain (FlowerOutorder flowerOutorder);


	IPage<FlowerTagInfo> getFlowerVarietysALL(IPage<FlowerTagInfo> page , Wrapper<FlowerTagInfo> wrapper);

	/**
	 * kuguan qkuguan 库管确认
	 * @descriptionauthor
	 * @author gf
	 * 2022-11-23 13:27
	 * [id]
	 * @return int
	 */
	int sureOutDo(String id , List<FlowerOutorderinfo> infoListsForTnumber) throws IOException;

	int sureOutDoBack(String id) throws IOException;

	String pipBySealNo(String sealNo);


	/**
	 *
	 *冲红
	 * @descriptionauthor
	 * @author gf
	 * 2023-4-10 13:43
	 * [orderBo, sealNo]
	 * @return void
	 */
	void redOutOrderByNos(String orderBo, String sealNo, String sealNoNew, List<FlowerOutorderinfo> flowerOutorderinfoList);
}
